add open fd for reading and writing