moved some utils to scala-util