M3 enviroment preparation