add env support