working with $CFG, get_config() and defaults