0.5.0 is out, with variants of grayrest's patches
(cherry picked from commit f2670259d1a5895a0e56711ce24478f097bf52d3)