move type_callback config to core