added serialization for file offsets