added switch load method