use conn variable name instead of server, which is confusing