added runLocal and runOnCluster