Prepping for onError and other handlers