use config file instead of cmd