moved some filtering constants to constants header
moved stop_check to check when receiving None responses in stream