breaking file into packets