add regex matching addrs
add g// support