check for lockfile before running