class manager and other stuff