lots of new stuff in the script. also moved the hex JSON into this repo