methods to retrieve origin and canonical urls, and print diagnostic info on start.