message_received() added to API