update for new vector api