adding lock file