             _configFile = configFile
             do {
                 let content: String = try configFile.read()
-                guard let yaml = try Yams.load(yaml: content) as? [String: Any] else {
+                guard let yaml = try compose(yaml: content) else {
                     throw ConfigError(kind: .yamlSyntax)
                 }
 
-                if let serv = yaml["server"] as? [String: Any] {
-                    if let serverRoot = serv["serverRoot"] as? String {
+                if let serv = yaml["server"] {
+                    if let serverRoot = Config.getStringVariable(from: serv["serverRoot"]) {
                         let sr = Path(serverRoot).absolute()
                         if sr.exists {
                             _serverRoot = sr

    /// Shared instance
    public static let sharedInstance = Config()

    // swiftlint:disable cyclomatic_complexity
    // swiftlint:disable function_body_length
    private init() {

                            print(sr.string + " does not exists using default server root")
                        }
                    }
                    if let port = Config.getIntVariable(from: serv["port"]) {
                        _port = UInt16(port)
                    }
                    if let dom = Config.getStringVariable(from: serv["domain"]) {
                        domainConfig = dom
                    }
                }
