v0.1.7: fixed bug, moved index.js to lib