set up addentry command, logic needs to be worked out