fixed some stuff in discoverhelper