fixed to support latest scalatra snapshot