began port to coffeescript