redid tony's changes for stupid dynaloader nonsense