added wrapper and jsdoc