removed warning and r/w can work now