improve spark service