edm write and read are working