adding more debug messages