move environment creation functions into ChinaContext