refactor; release v0.4.0