add network status (online/offline) validation
add network error handling
refactor postprocessing