added some output to see what's going on better