added switch to run join command