add lock file