r3427: split the openx logic out from the other open mapping code