adding as_dict conversion for cconfig