add functions for set config