removing the DIR argument from the call to _write_file_ifaces.