added some debug info prints