the script now runs without exceptions