re-add util.checkClientMode for compatibility and add removal notice