various fixes leading to 0.2.0

This was a marathon to get to the end.