first version of urin stream + some logic