added more debug info to the log