move var_log to helpers.php