debugging amr