simplify sendBasicCommand