proper network callbacks

@qinweigong 
good idea probably only if initFailed is false