added debugging output
clean up