bootstrap with random seeds and extra lib functions