changing uccorg-update to middleware