Splitted config init in separate fuunction
fixes