incomplete fix before for detach routine, need lag to assess lag before buffer deref