handle identity being a list rather than dict