fixed random search
about to refactor globals and convert uber to cj