capture more error info