add mutex to packet reader