fix controller (find and json output). Now attachments get listed (no pr...

...eview though)