added flat file serializer