hook up a pair of commands