split main.go; add early Go proxy