add set lock_cmd on/off - fix perl warnigs