adding lock files