doc
small refactor + fix node 0.8 oob bug