refactored network checking into userHandler