some changes to network api