changed log mode to debug mode