Updated the config paths

and used getStoreConfigFlag to get the bool instead of typecasting it manually.