adding my own version of the script localizer