script updated to work with version 1.101 of CKII