added debug string and logger