add support for passing serialized config file