prepare master environment