removed _ant error and added lock detected function