updated ip uploading method, fixed bugs