* rewrite of the system, working inline attachments!