able to write to multiple files