network package refactor and hash mechanism