added variable to control PTYWrapper logging