rft - attachments logic, see #221