set rootFolder automatically to the absolut path