few attachment loader fixes, changed id format for attachments