wip - switch to coffeescript