add code to find decorators

This is pretty basic, but I suspect it should work in most cases.