added generate stack info