fix for assignment-client scripts with multiple instances