bug in index.js in last commit...fixed