reformat connection
index fix