improved essential.js API