stick some debug statements in