using declaratice service instead of activator