use server.serve_forever instead