added ability to start server from api