add some code to Bootstrap.php