optimizing loader