scala useful utilities