added better logs