added packet writer (WIP)