fix missing var config.protocol