support getenv to retrieve protocol type