changed to not print debug statements to stdout