improve setting app locals