move install unit to write_files