implemented config hierarchy