SG spike of inventory adapter, loosely based on Corey's work, and thrown into a gem