adding in write capabilities