added binding for lock