impl filter cache
fix some bug for tstream