init from web.go