modified to allow for url