add set_log to every class to better debug