clean up code in run_assemblies