new as_dict method in cfg to be used in cloudCS