[unstable] major update, context ptr as first arg of reentrant funs, the subst script works