add basic stream wrapper