support omap , xmap
improve and doc