changed loaders to instance based