common scala stuff