updated script for use in r/testasoiaf