instrument methods declaratively