change switch according to v5's Makefile