updated to use stream not post