fix cake compilation and other addition