use stream wrapper in utility class