improved messages for debugging