miscellaneous coffeescript functions