add struct reader/writers to file serializer