reverted to old incremental packet parsing
added logfile as an argument to logger.c