change the boot function on serviceprovider