common useful tools for scala.