Switch loader logic