added elastic search writer