add task, add needupdate func, modify startNewGoagent method, add network retry

first runnable version