added "switchstatus" var to prevent long timeouts