script updated to work with version 1.10 of CKII