added perform add command code and test