refactored start|stop|restart so that it's handled by API.