gw_info: move code to where it belongs