changed funcs names;added signals, refresh token in thread