add more stuff to swagger middleware