added more helpful debug statements