add type-register class
printf warnings