adding queryInventory preprocess/postprocess hooks
Fixing typo which was causing snapshot not to be used