update exit code for script