debug for messages