tweaked assembly script to make it multi-threaded