fix keyError for insertdatatier and add a new config. YG