major updates,implemented network connectivity