restored to version with no calls to Sparkconf