updated httphandler.class.php