added -L to make curl follow links