implemented handle_have_msg()