set current env to default unless an env is provided and give the option to limit environments