add fswitch to switch between cpp and h