added debugging statements.
more debug msgs