removing debugging snippet
adding debug control script
correction in print_environment