moved some functions around in mongorunner files