add config block to add custom error messages and subclass behaviour