changed exports for loot and switch