crude workaround for https://github.com/scalatra/scalatra/issues/290