cleanup resource section