creat and run environment