httphandler,stateserver practices