added serializer to config
extracted strucutre serializer interface
changed caching method to filesystem for preview