magoc with streams