stop using time.sleep to check for server start