only start server if run as main