added logging /debug output