v 0.2.0 - hack to make toMap and toSeq work