further changes not to process bad buffers