adding dispatcher to make it work with Scala RequestHeaders