major (not yet complete) rewrite of xrm_mapfile started
add __initialize method to try to cover more initialization cases