adds some debug output