refactor, add tests
v0.3.0