Revised rex API - geo example ported