Update cdModule, update cdModule API vars, add an import for global vars