aded some debug print to console