trying to handle partial packets (untested)