script does not return standard exit codes