some changes in the multichain functions