getting the script right