output to console before processing, not after, to catch errors