scott's two lines to gem file lock