add command to dp