some changes on Backend to avoid manipulation of freed channels