[CR] finalize static middleware