added spark context, non-local