removing dependency on scalaz