bag debugging