added Loader class, needs work