rename serializeFromFile to serializeToFile