changed packet format and hash to id