migrates to coffeescript