replace println with log statements