hubside middleware pipeline