added removeLockFile