working with config and main.js