error report functions

requires config file!