httpPreScript custom init hook