use streamprocess module