faster recv and retry flag
half working prototype