handled no network more gracefully, refactored in prep for line snap feature