added write capabilities