generate map file