formatting connection parameters