fixed app config factory