added some more informed debug messages