added string stream recording