why we`re checking exit codes below and not checking here?