simplifying decorator api