revised the way to get rid of http