add how to config different types