better errors config working