add shared in op
add shared in op for resource