adding some debug messages