added support for Spark Core