Base.php history improve