switched lib