removes exit codes from script