added debug info to console