added more inline debug messages