cases.put, attachments.delete, bug fixes