add ability to delegate slave connection to master for write operations