fix aome resource management warnings