main program loop, server start/stop