modify lockfile
adding error support