add env options support