remove unused lines, add inventory module