refactored mission controller, added some functions to starmap