removed unnecessary urls from switch check