creating default conf, some refactoring