remove util.checkClientMode in favour of a much simpler config.checkClientMode