use dcompose/middleware