assem: output file handling