first attempt at handling gauges