[CR] static middleware (v0 init with bugs)