reg2way wrapper script