rename _WF to _CM, change while loop, fix hosts file issue