changed some sysouts to logger