updated loader optimizer