static middleware api (issue #2)