adding the asyunchronos queue management function
rewrite of the inventory class