update init script
prepare url protocol