make scriptError local to prevent multi-thread issue
more robust bootstrap
move should works now