improved inventory logging