add config file read , remove compile warning