prepare for url