wip class patch register via extension