added assert if you don't use the singleton class manager