added utility function that flattens mutli-level maps like Map[String, Map[String,...]]