build a new environment