myriad changes, fix to smart-op.el