see my comments below  about the possibility of converting this to a JSON file