added post for setmode