missing code in http state machine