added better log