expand op and deop commands