simplified method buildCommnad