refactor app config