added get_lock