added bundledDependencies and improved task loader