modified http class