use cmd as folder in config
change the model, add support for tls