yard docs for receive_messages