serialize file and copy work