updated api for virtex