forget about rewriting it for ash 3.0 wait until the new shell comes out and then see what needs to be done.