rewriting to use rabbit.js
working