add -empty- lines to inventory, bug fix