First phase to switch to Hapi
Second phase of switching to Hapi