more work on error logging