added minimized script to prevent on-demand minimization