main: hook up with discovery