deserialization of reps and files