Support directive, improve stack structure for recovery