added 4byte header to net protocol