get proto from env instead of server