add config path and fix duplicate index error