Add Middleware support
bump version constraint for bernard