code plementation preparation for instance discovery implementation