handle files as well as stdin, both implicit and as -