route handler changes so we can create non EXPRESS app