added some print-to-terminal messages