v0.5.1 a few fixes and performance improvements