start server in main