add CoffeeScript wrap functions