factored out the connection
formatted eval