add AWS's url parsing function