security enhancements in inventory module: picked up from VT6