support adding properties directly to the error object