use files for output and better -s