fixes local tags and makes map a global variable to augment to