added packet discard file support