make UPat streams global

not sure yet if this is the best solution