port to latest wai; will rewrite hails after OSDI submission with lio-simple