remove the explicit type as it is now correctly inferred.
get some variable response from the Api middleware.

also add a local module import to make the run functions less verbose.
add command line to start the api separately.