added inteligent command append