changed uri to use public_uri().