less verbose printing and a bug fix.