refactor APP_CONFIG