add logger for debuging