throw exception if config.name is not set
correct name and extract raiseError[] to be used by subclasses
extract calculation of file path to a separate method