added resource management todo