using curl instead of relative path