fixes bug in bootstrap script (background threads)