using is_write for api attribute instead of isWrite