only register the ptype when it's actually there