adds start/stop functions to local environment