add network error code
add listen code