added new packet handling