adds lockfile