updated Loader.cs