add net handler
rename some variable names