more refactoring of zen.coffee