excercise 8, also fix a bug when setup vm mapping for env
finish exercise 9