lets remove all these print and use the logging facility, maybe these print statements should be debug?