check for invalid container class