add merge-to and merge-from commands