putting siteroot in parameter instead of hardcoding it, with backwards compatible default