replace old-stype connection to new style