more meaningful error msgs, and push all error output into logging structures