use Carp::croak instead of die inside the dummy.