rename addType api to addFormat
0.2.2