improve the script, use the proc_sys_reset block for reset handling