replace that stupid cat with command exit code