simplify dump backpack code

hopefully fix #1159