made SparkService asynchronous