fixes to analyze spark