use different method of saving long (>64k) mappings

fix #147