a bunch of hotfixes to advance the prototype of scalahost