WIP: network errors checking