wip on coffeescript conversion