UPDATED switched from logging errors to using error objects from the namespace data.