add a switcher for sourcemap