final fixes. enabling upload of attachments