use dict instead of list for map arguments