make it compile /w CubeEngine too
moved old Codeparts from CubeEngine to here