update to v0.5, pull request #2