get switch status on start