fixed dependencies of scripts and modules now that they are no longer loaded into global scope