setup env (mostly)