updates to allow custom inventory in scripts