halfcoffee main codes