resource code cleanup