only runs enabled middleware