add file to write model in binary format