started moving message processing to run_server