added debug context listener