https://gist.github.com/bowbahdoe/19c2fbecbdef39de078997bfe8de7b64#file-edn-rs-L347
best i can tell, it works