fixed return type of registration extension