added some more diagnostic messaging