update internals.php