added $log dependency