use die rather than croak