fixed bug incorrect net protocol passed as argument