handle_client() almost finished