use Carp (fix #3)