updated to v0.2.2 for npm