temporary instance method to convert a config object into a dict