Using config for ES connection