Removed debugging code from setmode
added virtual env