set entire env with swift source