v0.3a few bug fixes