added switch exec