save messages and working existing_ids