changed rootpath to be project dependant instead of site dependant