(lua) added etrace- hooks that mark the end of trace- hooks