improve bootstrap script