added functionality to switchlink