less hackish way to wait for server to start up