merged bootstrap.sh script from RC_0_16
merge runtime-checks instead of asserts fix from RC_0_16