move config file form apps.js to file config