some scala scripts