improve exit code