add write_gcm plugin

Yes. I will update it later.