changed method for ip uploading