renewd and minified logic