add resource map to fix inconsistent format. add comment