added better logger