move http factory up to the top
no need for scripts any more