enabled to write files(not stdout)