initial stab
more work
set up the routes as middleware