rewrite for 0.12.x version of builder.js