Updates to inventory plugin, fixing some permission issues