using the async module;
a little code refactoring in the papercut.js;