add config file + get config logic