update to allow passing of custom inventory file