fix scripts to work on arran