adding some logging to the file lock stuff