added more debugging statements
changed debug statments