major update to 1.0.x. rewrite http.c. update reset mechanism and more