update to accept url