process STDIN as well as files