fixed problem where hw_version might not exist in template
switched from yaml to json for built-in module support