runtime: various fixes
0.8.2