fix bugs where i'm misusing my own libraries.
rev the npm version