modify http process logic