adding read an write device