add debug sysout code