otr safety guard
tryed to fix more otr bugs. new resource setting