mason is more strict about variables - patch from Richard Siddall, thanks