add diif to command and grp -v to check lock