refactored for seneca 0.5.9
updated package.json