added inventory and enabled debug