do stuff with files and standard streams