a generalized loader that is also faster (did some speed optimization)