migrated to coffeescript badly, causing slowdowns