generate single join command