fix arguments for conn.format()