geo fix middleware