added lockfile removal