port 'main' and 'app' to coffee