- added some debugging code