everything to cfgfunctions