various bugfixes, 0.8.0 stuff