added siteurl detection