using scala distributedly