added check for manager class existence