adding comments for lock methods and handling a possible BPE