fixed the wrong exit codes