integrate with new launch file to allow switching roles; switch function