removed some debug print statements from logging