change the config file and deal the relation