added some debug print commands