migrated to coffee script