change requires and updates to use https