added packet printing