switched routing middleware
moved content manager code into separate include