bunch more refactoring, starting to process line packets