add reading config file code