prepared to serialization from file