added some more diagnostic to print