simple stream implementation
finished simple stream routing