extended grabbing flag use for performance reasons
some cleanup