updated switches based on lamefun's design.