Add ability to load inv from file