http stat bugfix and opti