refine handle tracking in cases of complex usage