updated basehander to add support for global and localized data variables