stupid scala stuff