added helpful debug messages