1 refine code 2 add resource and store in chrome