renamed vars and export hwinit