added pre-hook loader fix