use to_hash and to_json
added settings object to config spec