controlPort config variable usage fix