adding two new debug methods