uri logic decoupler reimplementation