added some debugging to help fix issues