added check for app locals