connectionmanager addchunk ifelse