updated to use icestream module