changed bootstrap function for hook
updated version
fix indent
new version