renamed streams inside encode/decode