added option: only reconnect on wifi