scala utilities