adds searching for nearest output and generator prop