removed dispatcher class, @expose method moved in middleware