manage shared resource