working xts version compatible with xts generic