implement add command