adding resource management for obs