get the script working