coffeescript fixes