allow env or environment in options