refactor for 0.3 libdtrace