adds missions routes. extracts functions to modules