fixed tagmon, re-using detach/detachstack and attach/attachstack