fixing main_server