ext: update to return array of doubles