introduce a few utility functions in coffeescript