added logs to debug