some scala stuff