updates for error logging