added localTextLoad function