now handle packets