please make those require with proper error messages for user (stating what the required class is and what the given one is)