added some debugging code
added some debugging code
commiting work in progress