fixed major issues in bootstrap script