adding platform switch mechanism