proper network callbacks

@qinweigong 
Can we do queue.remove(1); here instead? to save one persist.