refactored the things_config resource