update to use new middleware routes