add decorator mode