fix tentative for d_lock