check whether rootpath has been set before