Change a list to dict to work with newstyle packet