refactor fields definition
added 'attachments' list field implementation