fix settings and autorefresh functions