extract the register decorator