added temporary console outputs for debugging;