adding in debug output