run Cake in thread