replace server/sock parameters with instance