compat class