restructured vars and utils