remove environ, add api routes, add marginalia