added functionality of config file