change outdated C4SNet api usage into current.