add file lock