sites middleware update