updated loader optimizer for strict compiler