added some calls to log() in handle_message()