inventory fixes, config dir fix