more detailed error logging